Skip to content

Conversation

@meiliang86
Copy link
Contributor

No description provided.

@meiliang86 meiliang86 requested a review from mfateev April 24, 2019 20:41
.getMetricsScope()
.counter(MetricsType.STICKY_CACHE_THREAD_FORCED_EVICTION)
.inc(1);
while (true) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we have some time limit, just to be on the safe side?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We break if there's no item in the cache that can be evicted. Seems to me it's safe to always retry if we have a successful eviction.

@meiliang86 meiliang86 merged commit d6773ef into cadence-workflow:master Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants